#define _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>

int main()
{
    int a = 0;
    while (scanf("%d", &a) == 1)
    {
        if (a > 0)
            printf("1");
        else if (a == 0)
            printf("0.5");
        else
            printf("0");
        printf("\n");
    }
    return 0;
}
